// /import core
// /import uicore
// /commands 表情
(function() {
	var utils = baidu.editor.utils, Popup = baidu.editor.ui.Popup, SplitButton = baidu.editor.ui.SplitButton, MultiMenuPop = baidu.editor.ui.MultiMenuPop = function(
			options) {
		this.initOptions(options);
		this.initMultiMenu();
	};

	MultiMenuPop.prototype = {
		initMultiMenu : function() {
			var me = this;
			this.popup = new Popup({
				content : '',
				iframe_rendered : false,
				onshow : function() {
					if (!this.iframe_rendered) {
						this.iframe_rendered = true;
						this.getDom('content').innerHTML = '<iframe id="'
								+ me.id + '_iframe" src="' + me.iframeUrl
								+ '" frameborder="0"></iframe>';
					}
				}
					// canSideUp:false,
					// canSideLeft:false
				});
			this.onbuttonclick = function() {
				this.showPopup();
			};
			this.initSplitButton();
		}

	};

	utils.inherits(MultiMenuPop, SplitButton);
})();
